package week9.Q2;

public class EatableTest {
    public static void main(String[] args) {


        Eatable eatable[] = new Eatable[3];
        eatable[0] =new Chinese();
        eatable[1]=new American();
        eatable[2]=new Indian();
        for(int i=0;i< eatable.length;i++){
            eatable[i].eat();
        }


    }
}
